<!--<div class="row"> <h3 class="page-header">银行列表</h3></div>-->
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title>银行列表</title>
</head>
<body>
<div class="contant">
<div class="row">
    <div class="col-md-12"> 
        <div class="panel panel-default">
            <div class="panel-body">
                <label><a class="btn btn-primary" href="{:U('Bank/add')}">添加</a></label>
                <form action='{:U("Bank/index")}' class="form-inline text-right fr m-b-5">
                    <input type="text" name='bank_name' value='{$Think.get.bank_name}' class="form-control mr20 w150" placeholder="银行名称">
                    <select name='status' class="form-control mr20 w100" >
                        <option value='-1'>状态</option>
                        <option value='0' <eq name='Think.get.status' value='1'>selected</eq> >启用 </option>
                        <option value='1' <eq name='Think.get.status' value='0'>selected</eq> >禁用 </option>
                    </select>
                    <button class="btn btn-primary" type="submit">搜索</button>
                </form>
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th width="60">序号</th>
                                <th>银行名称</th>
                                <th>添加时间</th>
                                <th width="75">状态</th>
                                <th width="130">操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <volist name="list" id="list">
                                <tr>
                                    <td>{$i}</td>
                                    <td>{$list.bank_name}</td>
                                    <td>{$list.create_time|date='Y-m-d H:i',###}</td>
                                   <!--  <td>
                                        <input class="setSort" type="text" size="5" data-url="{:U('Bank/setSort?id='.$list['id'])}" value="{$list.sort}">
                                    </td> -->
                                    <td>
                                        <button class="btn <eq name='list.status' value='0'>btn-primary<else/>btn-default</eq> btn-sm setStatus" type="button" data-url='{:U("Bank/setStatus?id=".$list["id"])}' data-status="{$list.status}"><eq name='list.status' value='0'>启用<else/>禁用</eq></button>
                                    </td>
                                    <td>
                                        <a class=" btn btn-default btn-sm" href="{:U('Bank/edit?id='.$list['id'])}">修改</a>
                                        <button data-url='{:U("Bank/del?id=".$list["id"])}' class="btn-sm btn btn-default delBtn" type="button">删除</button>
                                    </td>
                                </tr>
                            </volist>
                        </tbody>
                    </table>
                </div>
                {$page}
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>